﻿using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Collections.Generic;
using System.Diagnostics;
using THO7AlgoritmTimerApplication.Filters;
using THO7AlgoritmTimerApplication.Filters.Noise;

namespace THO7AlgoritmTimerApplication
{
    class VisionAlgorithm_Binair : VisionAlgorithm
    {
        int intensity = 10;

       
        public VisionAlgorithm_Binair(String name) : base(name) { }

        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage)
        {
            Image img1 = new Image(sourceImage);
            //return img1.ApplyFilter(new InverseFilter());
            return img1.ApplyFilter(new Binair());
            //return img1.ApplyFilter(new SaltAndPepper(intensity));
        } 
    }
}
